<?php defined('SYSPATH') or die('No direct script access.');
 
/**
 * This is my custom controller with awesome stuff that I need.
 *   File name: MY_Controller.php
 */
class Controller extends Controller_Core {
	
	public $view = null;
	
	public function __construct(){
		parent::__construct();
	}

	public function create_view($tpl=""){
		if($tpl==""){
			$this->view = new View('pagina');
		}else{
			$this->view = new View($tpl);
		}

		$this->view->cabecalho  = new View('cabecalho');
		$this->view->menu = new View('menu');
		$this->view->rodape  = new View('rodape');
		
		$this->view->cabecalho->title = 'Compilador PHP';
	}
}